package com.kylin.domain.merchant.vo;

import lombok.*;
import org.axonframework.modelling.command.AggregateIdentifier;

import static org.axonframework.modelling.command.AggregateLifecycle.apply;

@Data
@Builder
public class Merchant {
    @AggregateIdentifier
    private Long id;
    private String username;
    private String password;
    private String salt;
    private String phone;
    private String email;
    private String qq;
    private String roles;
    private Integer state;
    private Integer removed;
    private Long createdBy;
    private Long updatedBy;
    private Long removedBy;
    private Long createdAt;
    private Long updatedAt;
    private Long removedAt;

    public static final Merchant EMPTY =
            Merchant.builder().build();
}
